package com.xli.mis.tablebasic.entity.dto;

import com.xli.dto.validation.group.IGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


@Data
public class TableBasicDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 2336550959542546522L;

    @Schema(description = "中文表名称")
    @NotBlank(message = "tableName必填", groups = {IGroup.add.class, IGroup.update.class})
    private String tableName;

    @Schema(description = "实体名")
    private String entityName;

    @Schema(description = "数据源ID")
    private String dataSourceId;

    @Schema(description = "排序")
    private Integer orderNum;
}
